//Code generated with DAME. http://www.dambots.com

package 
{
	import org.flixel.*;
	public class Level_eighth extends Level
	{
		//Embedded media...
		[Embed(source="../res/mapCSV_Group8_BlueLayer.csv", mimeType="application/octet-stream")] public var CSV_Group1BlueLayer:Class;
		[Embed(source="../res/bblock.png")] public var Img_Group1BlueLayer:Class;
		[Embed(source="../res/mapCSV_Group8_GreenLayer.csv", mimeType="application/octet-stream")] public var CSV_Group1GreenLayer:Class;
		[Embed(source="../res/gblock.png")] public var Img_Group1GreenLayer:Class;
		[Embed(source="../res/mapCSV_Group8_YellowLayer.csv", mimeType="application/octet-stream")] public var CSV_Group1YellowLayer:Class;
		[Embed(source="../res/yoblock.png")] public var Img_Group1YellowLayer:Class;
		[Embed(source="../res/mapCSV_Group8_WinLayer.csv", mimeType="application/octet-stream")] public var CSV_Group1WinLayer:Class;
		[Embed(source="../res/28.png")] public var Img_Group1WinLayer:Class;

	

		//Sprites


		public function Level_eighth(addToStage:Boolean = true, onAddSpritesCallback:Function = null)
		{
			// Generate maps.
			layerGroup1BlueLayer = new FlxTilemap;
			layerGroup1BlueLayer.loadMap( new CSV_Group1BlueLayer, Img_Group1BlueLayer, 12,12, FlxTilemap.OFF, 0, 1, 1 );
			layerGroup1BlueLayer.x = 0.000000;
			layerGroup1BlueLayer.y = 0.000000;
			layerGroup1BlueLayer.scrollFactor.x = 1.000000;
			layerGroup1BlueLayer.scrollFactor.y = 1.000000;
			layerGroup1GreenLayer = new FlxTilemap;
			layerGroup1GreenLayer.loadMap( new CSV_Group1GreenLayer, Img_Group1GreenLayer, 12,12, FlxTilemap.OFF, 0, 1, 1 );
			layerGroup1GreenLayer.x = 0.000000;
			layerGroup1GreenLayer.y = 0.000000;
			layerGroup1GreenLayer.scrollFactor.x = 1.000000;
			layerGroup1GreenLayer.scrollFactor.y = 1.000000;
			layerGroup1YellowLayer = new FlxTilemap;
			layerGroup1YellowLayer.loadMap( new CSV_Group1YellowLayer, Img_Group1YellowLayer, 12,12, FlxTilemap.OFF, 0, 1, 1 );
			layerGroup1YellowLayer.x = 0.000000;
			layerGroup1YellowLayer.y = 0.000000;
			layerGroup1YellowLayer.scrollFactor.x = 1.000000;
			layerGroup1YellowLayer.scrollFactor.y = 1.000000;
			layerGroup1WinLayer = new FlxTilemap;
			layerGroup1WinLayer.loadMap( new CSV_Group1WinLayer, Img_Group1WinLayer, 28,28, FlxTilemap.OFF, 0, 1, 1 );
			layerGroup1WinLayer.x = 0.000000;
			layerGroup1WinLayer.y = 0.000000;
			layerGroup1WinLayer.scrollFactor.x = 1.000000;
			layerGroup1WinLayer.scrollFactor.y = 1.000000;

			//Add layers to the master group in correct order.
			masterLayer.add(layerGroup1BlueLayer);
			masterLayer.add(layerGroup1GreenLayer);
			masterLayer.add(layerGroup1YellowLayer);
			masterLayer.add(layerGroup1WinLayer);


			if ( addToStage )
			{
				FlxG.state.add(masterLayer);
			}

			mainLayer = layerGroup1BlueLayer;

			boundsMinX = 0;
			boundsMinY = 0;
			boundsMaxX = 28000;
			boundsMaxY = 2100;

		}


	}
}
